package ac.neec.mio.ui.activity;

import android.app.Activity;
import android.view.KeyEvent;

public class UnBackStackActivity extends Activity {
	// Backキーの無効化を実装済みのスーパーアクティビティ
	@Override
	public boolean dispatchKeyEvent(KeyEvent event) {
		if (event.getAction() == KeyEvent.ACTION_DOWN) {
			switch (event.getKeyCode()) {
			case KeyEvent.KEYCODE_BACK:
				return true;
			}
		}
		return super.dispatchKeyEvent(event);
	}
}
